﻿using SqlSugar;

namespace Armon.Lib.Database
{
    public abstract class BaseEntity
    {
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public virtual int Id { get; set; }
        [SugarColumn(InsertServerTime = true)]
        public virtual DateTime CreatedTime { get; set; }
        [SugarColumn(InsertServerTime = true, UpdateServerTime = true)]
        public virtual DateTime UpdatedTime { get; set; }
    }
}
